Presented is a Hough line and circle detector implemented in Python. It is designed to work on monetary tokens (coins and papernotes) by recognizing circles and rectangles.
The main process for this geometric detection is as follows:
Running the program is quite simple:
./test_cases named case*i*.jpg (without the *) where i is the case number. main.run(case_ids) function where case_ids is a list of case numbers of cases you wish to test. LINE_THRESHOLD, CIRC_THRESHOLD to improve line (hence rectangle) and circle detection, respectively. Those two parameters can be found in main.py.from main import run
run(case_ids=[1])
from main import run
run(case_ids=[2])
from main import run
run(case_ids=[3])
from main import run
run(case_ids=[4])